package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 漂流瓶捞取记录对象 pickup
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class Pickup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 捞取记录ID，主键，自增 */
    private Long id;

    /** 捞取的漂流瓶ID */
    @Excel(name = "捞取的漂流瓶ID")
    private Long bottleId;

    /** 捞取者ID */
    @Excel(name = "捞取者ID")
    private Long pickerId;

    /** 捞取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "捞取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pickupTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBottleId(Long bottleId) 
    {
        this.bottleId = bottleId;
    }

    public Long getBottleId() 
    {
        return bottleId;
    }

    public void setPickerId(Long pickerId) 
    {
        this.pickerId = pickerId;
    }

    public Long getPickerId() 
    {
        return pickerId;
    }

    public void setPickupTime(Date pickupTime) 
    {
        this.pickupTime = pickupTime;
    }

    public Date getPickupTime() 
    {
        return pickupTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bottleId", getBottleId())
            .append("pickerId", getPickerId())
            .append("pickupTime", getPickupTime())
            .toString();
    }
}
